﻿    using System;

    public class LogUtil
    {
        public static void LogProfile(string str)
        {
            switch (Consts.m_ProfileLogType)
            {
                case ProfileLogType.Mono:
                    MonoProfiler.BeginSample(str, MonoProfiler.MonoProType.config);
                    break;
                case ProfileLogType.Cpu:
                    LogWrapper.LogProfileLeaving(str);
                    break;
                default:
                    throw new ArgumentOutOfRangeException("m_ProfileLogType", Consts.m_ProfileLogType, null);
            }
        }
    }

    public enum ProfileLogType
    {
        Mono,
        Cpu
    }